package com.hnust.service.impl;

import com.hnust.api.StudentApi;
import com.hnust.domain.*;
import com.hnust.api.StudentApi;
import com.hnust.domain.Result;
import com.hnust.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import retrofit2.Callback;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import retrofit2.Callback;

import java.util.List;

/**
 * 创建人：zhangRuWang
 * 创建时间：2020/10/28
 * 描述：
 */
@Service("studentService")
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentApi studentApi;

    @Override
    public void getCourseInfo(Callback<Result<StudentDetailAndTotal>> callback, String id, String token, String class_name, String stu_name, String course_name, Integer now_page) {
        studentApi.getCourseInfo(id,token,class_name,stu_name,course_name,now_page).enqueue(callback);
    }

    @Override
    public void getVisual2(Callback<Result<List<Visual2>>> callback, String token, String tea_id) {
        studentApi.getVisual2(token, tea_id).enqueue(callback);
    }

    @Override
    public void getVisual1(Callback<Result<List<Visual1>>> callback, String token, String tea_id) {
        studentApi.getVisual1(token, tea_id).enqueue(callback);
    }
}
